
package com.autumn.config.entities;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.autumn.config.api.consts.ConfigureConsts;
import com.autumn.mybatis.mapper.annotation.TableOrderBy;

/**
 * 连接配置
 * 
 * @author 老码农
 *         <p>
 *         Description
 *         </p>
 * @date 2017-12-30 20:53:55
 */
@Entity
@Table(name = "cfg_connection")
@TableOrderBy(value = "sortId ASC")
public class ConnectionConfigure extends AbstractConfigureFullGmt {

	/**
	 * 
	 */
	private static final long serialVersionUID = -808038818489461982L;

	private String name;
	private Integer connectionType;
	private String propertyContent;

	/**
	 * 
	 */
	public ConnectionConfigure() {
		this.setSortId(1);
		this.setStatus(ConfigureConsts.StatusConsts.STATUS_DRAFT);
	}

	/**
	 * 获取名称
	 * 
	 * @return
	 */
	public String getName() {
		return name;
	}

	/**
	 * 设置名称
	 * 
	 * @param name
	 *            名称
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * 获取连接类型
	 * 
	 * @return
	 */
	public Integer getConnectionType() {
		return connectionType;
	}

	/**
	 * 设置连接类型
	 * 
	 * @param connectionType
	 *            连接类型
	 */
	public void setConnectionType(Integer connectionType) {
		this.connectionType = connectionType;
	}

	/**
	 * 获取属性内容
	 * 
	 * @return
	 */
	public String getPropertyContent() {
		return propertyContent;
	}

	/**
	 * 设置属性内容
	 * 
	 * @param propertyContent
	 *            属性内容
	 */
	public void setPropertyContent(String propertyContent) {
		this.propertyContent = propertyContent;
	}

}
